package cn.tradewin.advisor.persist.mapper;

import java.util.List;

import cn.tradewin.advisor.persist.model.AccountPerm;
import cn.tradewin.advisor.persist.model.Permissions;
import cn.tradewin.advisor.persist.model.UserPermsKey;

public interface UserPermsMapper {

	int deleteByPrimaryKey(UserPermsKey key);

	int deletePermsFromUser(String id);
	
	int insert(UserPermsKey record);

	List<AccountPerm> selectAuthorizedPermsForAccount(String id);

	List<Permissions> selectAvailablePermsForAccount(String id);

}